package com.xyazm.coupon.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xyazm.common.domain.BaseDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 优惠券领取记录表
 * </p>
 *
 * @author xuyou
 * @since 2022-06-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "UserCoupon对象", description = "优惠券领取记录表")
@TableName("user_coupon")
public class UserCouponDO extends BaseDO implements Serializable {


    @ApiModelProperty(value = "优惠券资源ID")
    @TableField("coupon_resource_id")
    private String couponResourceId;

    @ApiModelProperty(value = "优惠券编码")
    @TableField("coupon_id")
    private String couponId;

    @ApiModelProperty(value = "用户编码")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "优惠券状态 0:未使用 1:已使用 2:已作废 ")
    @TableField(value = "coupon_status")
    private Integer couponStatus;

    @ApiModelProperty(value = "使用优惠券的时间")
    @TableField("used_time")
    private Date usedTime;

    @ApiModelProperty(value = "抵扣金额")
    private Integer amount;


}
